<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" type="text/javascript" src="js/niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all"
	href="css/niceforms-default.css" />
</head>

<body>
	<script type="text/javascript">
		$("#span").typed({
			stringsElement : $("#typedStrings"),
			typeSpeed : 70,
			showCursor : false,
			contentType : "html"
		});
		var colors = [ [ "green", "#00E676" ], [ "blue", "#2196F3" ],
				[ "pink", "#ff005b" ] ];
		var randomColor = colors[Math.floor(Math.random() * colors.length)];
		var initialColor = randomColor[0];
		var initialHeartColor = randomColor[1];
		function colorChange(color, heart) {
			$('#span').attr('class', '').addClass(color);
			$('body p i').css('color', initialHeartColor);
			$('body p i').css('color', heart);
		}
		colorChange(initialColor);
	</script>
	<div id="container">

		<form action="AllPropInc" method="post" class="niceform">
			<fieldset>
				<legend>添加物品</legend>

				<dl>
					<dt>
						<label for="name">物品ID</label>
					</dt>
					<dd>
						<input type="text" name="ID" id="ID" size="40" maxlength="40" />
					</dd>
				</dl>
				<dl>
					<dt>
						<label for="num">物品名称</label>
					</dt>
					<dd>
						<input type="text" name="name" id="name" size="40" maxlength="40" />
					</dd>
				</dl>
				<dl>
					<dt>
						<label for="price">物品价格</label>
					</dt>
					<dd>
						<input type="text" name="price" id="price" size="40"
							maxlength="40" />
					</dd>
				</dl>
				<dl>
					<dt>
						<label for="price">所属学院</label>
					</dt>
					<dd>
						<input type="text" name="acdem" id="acdem" size="40"
							maxlength="40" />
					</dd>
				</dl>
				
				<dl>
					<dt>
						<label for="local">使用状况</label>
					</dt>
					<dd>
						<input type="text" name="use" id="use" size="40"
							maxlength="40" />
					</dd>
				</dl>
				<dl>
					<dt>
						<label for="price">数量</label>
					</dt>
					<dd>
						<input type="text" name="number" id="number" size="40"
							maxlength="40" />
					</dd>
				</dl>
				
			</fieldset>

			<fieldset class="action">
				<input type="submit" name="submit" id="submit" value="Submit" />
			</fieldset>
		</form>
	</div>
</body>
<style>
body {
	width: 100%;
	margin: 0 auto;
	background: url(./img/table.jpg);
}
</style>
</html>
